﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocListTemplate.aspx.cs" Inherits="ZLCMS.Web.Example.DocListTemplate" %>

<%@ Import Namespace ="ZLCMS.Business.Util" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>文章(DOCINFO)列表，根据类型分类，包括分页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>

<asp:repeater runat="server" id="rp_product">
    <ItemTemplate>
        <li>
        <div class='branch_img'>
        <a href="<%# Eval("Url") %>" target="_blank"><img src="<%# FileKit.FirstFilePath(Eval("ThumbnailUrl").ToString()) %>" width="120" height="100" alt="<%# Eval("Title") %>"/></a></div>
        <div class='branch_text'><%# Container.ItemIndex + 1 %>
        <div class='branch_title'><%# Eval("Title") %></div>
        <div class='branch_texts'><%# Eval("Content") %><br />
        <a href='<%# Eval("Url") %>' target="_blank">[查看详情]</a></div></div>
        </li>
    </ItemTemplate>
</asp:repeater><!-- rp_product -->

     <div class="fr">
        <webdiyer:AspNetPager ID="anp_list" runat="server" CssClass="pages" 
             CurrentPageButtonClass="cpb" PageSize="8" UrlPaging="True" 
             PageIndexBoxType="DropDownList" CurrentPageButtonPosition="Center" 
             NavigationButtonsPosition="Right" ShowBoxThreshold="0" ShowFirstLast="False" 
             ShowMoreButtons="False" ShowPageIndex="False">
        </webdiyer:AspNetPager></div>
    </div>
    </form>
</body>
</html>
